import request from '@/utils/request'

//添加园区信息
export function addPark(data) {
  return request({
    url: '/park/park/updatePark',
    method: 'POST',
    data: data
  })
}
//获取园区管理
export function getParkList(data) {
  return request({
    url: '/park/park/queryPark',
    method: 'POST',
    data: data
  })
}
//详情园区
export function getParbyId(id) {
  return request({
    url: `/park/park/queryByParkId/${id}`,
    method: 'get',    
  })
}
//修改园区
export function getParkUpdate(data) {
  return request({
    url: '/park/park/updatePark',
    method: 'POST',
    data: data
  })
}

export function delPark(id) {
  return request({
    url: `/park/park/delPark/${id}`,
    method: 'get',
  })
}

//添加楼宇
export function addBuildingk(data) {
  return request({
    url: '/park/park/addBuilding',
    method: 'POST',
    data: data
  })
}

//添加楼宇信息列表
export function getbuildingList(data) {
  return request({
    url: '/park/park/queryBuildingList',
    method: 'get',
    params: data
  })
}
 
//获取房间管理
export function getList(data) {
  return request({
    url: '/park/park/queryRoom',
    method: 'POST',
    data: data
  })
}


export function getRoomDetails(id) {
  return request({
    url: '/park/park/queryRoomById?id='+id,
    method: 'get',

  })
}
//添加房间
export function addRoom(data) {
  return request({
    url: '/park/park/addRoom',
    method: 'POST',
    data: data
  })
}

// http://182.140.221.194:9527/park/user/queryDictionary

// http://182.140.221.194:9527/park/park/queryPark

// http://182.140.221.194:9527/park/user/queryVehicle


export function getDictionary(params) {
    return request({
      url: 'http://182.140.221.194:9527/user/queryDictionary',
      method: 'get',
      params
    })
  }
///park/park/queryRoom